# # Data for the old airport
# def parse_distance(data):
#     remote_remote = data.iloc[0:71, 0:71]
#     remote_boarding = data.iloc[0:71, 71:-1]

#     arrival_remote = data.iloc[71:74, 0:71]
#     arrival_boarding = data.iloc[71:74, 71:-1]

#     rest_remote = data.iloc[74:, 0:71]
#     rest_boarding = data.iloc[74:, 71:-1]
#     rest_arrival = data.iloc[71:74:, -1:].T

#     return {
#         "remote_remote": remote_remote,
#         "remote_boarding": remote_boarding,
#         "arrival_remote": arrival_remote,
#         "arrival_boarding": arrival_boarding,
#         "rest_remote": rest_remote,
#         "rest_boarding": rest_boarding,
#         "rest_arrival": rest_arrival,
#     }
    

# Data for the new airport 
def parse_distance(data):
    remote_start = 0
    boarding_start = 193
    arrival_start = 297
    rest_start = 300

    remote_remote = data.iloc[remote_start:boarding_start, remote_start:boarding_start]
    remote_boarding = data.iloc[remote_start:boarding_start, boarding_start:arrival_start]

    arrival_remote = data.iloc[arrival_start:rest_start, remote_start:boarding_start]
    arrival_boarding = data.iloc[arrival_start:rest_start, boarding_start:arrival_start]

    rest_remote = data.iloc[rest_start:, remote_start:boarding_start]
    rest_boarding = data.iloc[rest_start:, boarding_start:arrival_start]
    rest_arrival = data.iloc[rest_start:, arrival_start:rest_start]

    return {
        "remote_remote": remote_remote,
        "remote_boarding": remote_boarding,
        "arrival_remote": arrival_remote,
        "arrival_boarding": arrival_boarding,
        "rest_remote": rest_remote,
        "rest_boarding": rest_boarding,
        "rest_arrival": rest_arrival,
    }